﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;


namespace WebManager.Controllers
{
    using YK.Service.Account;
    using Model = YK.Domain.Models;

    public class UserController : Controller
    {
        private readonly IUserService _userService;

        public UserController(IUserService userService)
        {
            _userService = userService;
        }

        public ActionResult Index()
        {
            Model.User user = new Model.User();
            user.Id = "-100";
            user.Name = "nimei";
            user.Pass = "123456";
            _userService.AddEntity(user);
            return View();
        }

    }
}
